<?php  
namespace Admin\Model;
use Think\Model;
class GoodModel extends Model{

    protected $tableName = 'good';
    //自动验证
    protected $_validate = array(
          array('name','require','商品名称必须填写！'), 
          array('des','require','商品描述描述必须填写！'),   
    );
    
}